package kr.co.doriclassic.powerjava.chapter12;
interface RemotControl{
	void turnOn();
	void turnOff();
}
public class AnononymouseClassTest {
	public static void main(String[] args) {
		//익명클래스
		RemotControl rm = new RemotControl() {
			@Override
			public void turnOn() {
				System.out.println("켜다");
			}
			
			@Override
			public void turnOff() {
				System.out.println("끄다");				
			}
		};
		
		rm.turnOn();
		rm.turnOff();
	}
}
